package pack1;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public class LoginDetDAO {

	@Autowired
	private SessionFactory sessionFactory2;
	
	public int save(LoginDet logindet)
	{
		return (Integer) sessionFactory2.getCurrentSession().save(logindet);
	}
	
}
